package cn.monkey.family.server.domain.uc.resource;

import cn.monkey.family.data.Result;
import cn.monkey.family.data.context.RequestContext;
import cn.monkey.family.data.crud.CrudService;
import cn.monkey.family.data.uc.resource.Resource;
import cn.monkey.family.data.uc.resource.ResourceQueryRequest;
import cn.monkey.family.data.uc.resource.ResourceVo;
import org.springframework.data.domain.Sort;

import java.util.Collection;

public interface IResourceService extends CrudService<String, ResourceQueryRequest, Resource, ResourceVo> {

    Result<Collection<ResourceVo>> getMenuTree(RequestContext context,
                                               ResourceQueryRequest resourceQueryRequest,
                                               Sort sort,
                                               Integer maxDeep);
}
